home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / futilsrc.zoo / fileutil / lib / Makefile.in < prev    next >
Encoding:
Makefile  |  1991-08-26  |  2.5 KB  |  93 lines

  1. # Makefile for library files used by GNU fileutils.
  2. # Do not use this makefile directly, but only from `../Makefile'.
  3. # Copyright (C) 1986, 1988-1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = /bin/sh
  20.  
  21. srcdir = @srcdir@/lib
  22. @VPATH@
  23.  
  24. SOURCES = argmatch.c backupfile.c basename.c dirname.c eaccess.c \
  25. error.c filemode.c fsinfo.c getopt.c getopt1.c \
  26. getversion.c idcache.c isdir.c makepath.c \
  27. modechange.c savedir.c \
  28. stripslash.c xmalloc.c xstrdup.c yesno.c \
  29. getdate.y posixtm.y \
  30. fileblocks.c fnmatch.c ftruncate.c mkdir.c mktime.c rename.c stpcpy.c \
  31. strdup.c strstr.c
  32.  
  33. OBJECTS = argmatch.o backupfile.o basename.o dirname.o eaccess.o \
  34. error.o filemode.o fsinfo.o getopt.o getopt1.o \
  35. getversion.o idcache.o isdir.o makepath.o \
  36. modechange.o savedir.o \
  37. stripslash.o xmalloc.o xstrdup.o yesno.o \
  38. getdate.o posixtm.o \
  39. @LIBOBJS@
  40.  
  41. DISTFILES = Makefile.in backupfile.h getopt.h modechange.h \
  42. fnmatch.h fsinfo.h system.h $(SOURCES)
  43.  
  44. all: libfu.a
  45. .PHONY: all
  46.  
  47. install: all
  48. .PHONY: install
  49.  
  50. tags: $(SOURCES)
  51.     ctags $(SOURCES)
  52.  
  53. TAGS: $(SOURCES)
  54.     etags $(SOURCES)
  55.  
  56. clean:
  57.     rm -f *.a *.o
  58. .PHONY: clean
  59.  
  60. distclean: clean
  61.     rm -f tags TAGS Makefile *.tab.c getdate.c *posixtm.c
  62. .PHONY: distclean
  63.  
  64. realclean: distclean
  65. .PHONY: realclean
  66.  
  67. dist:
  68.     ln $(DISTFILES) ../`cat ../.fname`/lib
  69. .PHONY: dist
  70.  
  71. libfu.a: $(OBJECTS)
  72.     $(AR) cr $@ $(OBJECTS)
  73.     -$(RANLIB) $@
  74.  
  75. getdate.c: getdate.y
  76.     @echo expect 8 shift/reduce conflicts
  77.     -bison -o getdate.c $getdate.y< || yacc $getdate.y<
  78.     test ! -f y.tab.c || mv y.tab.c getdate.c
  79.  
  80. # Make the rename atomic, in case sed is interrupted and later rerun.
  81. posixtm.c: posixtm.y
  82.     -bison -o posixtm.tab.c $posixtm.y< || yacc $posixtm.y<
  83.     test ! -f y.tab.c || mv y.tab.c posixtm.tab.c
  84.     sed -e 's/yy/zz/g' posixtm.tab.c > tposixtm.c
  85.     mv tposixtm.c posixtm.c
  86.     rm -f posixtm.tab.c
  87.  
  88. backupfile.o getversion.o: backupfile.h
  89. fnmatch.o: fnmatch.h
  90. fsinfo.o: fsinfo.h
  91. getopt1.o: getopt.h
  92. modechange.o: modechange.h
  93.